package com.neusoft.controller;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.cloud.context.config.annotation.RefreshScope;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import com.neusoft.service.impl.BotServiceImpl;

@RestController
@RequestMapping("/BotController")
@RefreshScope //开启动态刷新
public class BotController {

    @Autowired
    private BotServiceImpl  botServiceImpl;

    @RequestMapping("/listOptionByAdj/{adj}")
    public String listOptionByAdj(@PathVariable("adj") String adj)  throws Exception{
        return botServiceImpl.listOptionByAdj(adj);
    }

}

